< previous page page_302 next page >

Page 302
VALUEMEANING
SWP_HIDEWINDOWHides the window.

SWP_NOACTIVATE

Does not activate the window. If this flag is not set, the window is activated and moved to the top of either the topmost or non-topmost group (depending on the setting of the hWndInsertAfter parameter)

SWP_NOCOPYBITS

Discards the entire contents of the client area. If this flag is not specified, the valid contents of the client area are saved and copied back into the client area after the window is sized or repositioned.

SWP_NOMOVE

Retains the current position (ignores the X and Y parameters).

SWP_NOSIZE

Retains the current size (ignores the cx and cy parameters).

SWP_NOZORDER

Retains the current Z order (ignores the hWndInsertAfter parameter).

SWP_SHOWWINDOW

Displays the window.

Don't worry for now if you don't understand the meanings of these parameters or the meaning of the word ''flag" in this contextwe'll get to that in a moment. You'll see this kind of parameter with many API functions. What does it mean when it says "a combination of the following values"? These values are names of constants defined in the api32.txt file included with this book. Let's take a look at the actual values of these constants:
Public Const SWP_NOSIZE = &H1
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOZORDER = &H4
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_SHOWWINDOW = &H40
Public Const SWP_HIDEWINDOW = &H80
Public Const SWP_NOCOPYBITS = &H100

 
< previous page page_302 next page >